import request from "@/utils/request";

//获取物料和办公用品LIST
export function getAccountList(params){
    return request({
        url:'/api/v1/warehouse/account/list',
        method:'POST',
        data:params
    })
}
//获取报销损毁页面下拉map
export function getDestroyMap(){
    return request({
        url:'/api/v1/warehouse/material/destroy/map',
        method:'GET',
    })
}
//获取所属库房
export function getStoreroom(params){
    return request({
        url:'/api/v1/warehouse/setting/list',
        method:'POST',
        data:params,
    })
}
//创建销毁申请
export function createDestroy(params){
    return request({
        url:'/api/v1/warehouse/material/destroy/create',
        method:'POST',
        data:params,
    })
}

//获取销毁list
export function getDestroyList(params){
    return request({
        url:'/api/v1/warehouse/material/destroy/list',
        method:'POST',
        data:params,
    })
}
//获取状态MAP
export function getListMap(){
    return request({
        url:'/api/v1/warehouse/material/destroy/list/map',
        method:'GET',
    })
}
//获取销毁详情
export function getDestroyDetail(id){
    return request({
        url:`/api/v1/warehouse/material/destroy/details/${id}`,
        method:'GET',
    })
}
//写销毁记录
export function writeDestroy(params){
    return request({
        url:`/api/v1/warehouse/material/destroy/record`,
        method:'POST',
        data:params
    })
}
//销毁确认
export function confirmDestroy(params){
    return request({
        url:`/api/v1/warehouse/material/destroy/record/confirm`,
        method:'POST',
        data:params
    })
}